﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using User.API.Data;

namespace User.API.Controllers
{
    [Produces("application/json")]
    [Route("api/Users/[action]")]
    public class UsersController : BaseController
    {
        private readonly UserContext _userContext;
        public UsersController(UserContext userContext)
        {
            _userContext = userContext;
        }
        [HttpGet]
        public IActionResult Get()
        {
            var claims = User.Claims;
            return Json(UserIdentity);
        }
    }
}